﻿using System.ComponentModel;
using System.Xml.Serialization;

namespace Seagull.Model
{
    public class ChannelInfo
    {
        [XmlAttribute("通道号")]
        [DisplayName("通道号")]
        public byte Number { get; set; }

        [XmlAttribute("名称")]
        [DisplayName("名称")]
        public string Name { get; set; }

        [XmlAttribute]
        [Browsable(false)]
        public int X { get; set; }

        [XmlAttribute]
        [Browsable(false)]
        public int Y { get; set; }

        [XmlAttribute("相位偏移值")]
        [DisplayName("相位偏移值")]
        public int Offset { get; set; }

        [XmlAttribute("噪声阈值")]
        [DisplayName("噪声阈值")]
        public double NoiseQuota { get; set; }

        [XmlAttribute("线路")]
        [DisplayName("线路")]
        public byte Line { get; set; }

        [XmlAttribute("报警阈值1")]
        [DisplayName("报警阈值1")]
        public double WarningQuota1 { get; set; }

        [XmlAttribute("报警阈值2")]
        [DisplayName("报警阈值2")]
        public double WarningQuota2 { get; set; }

        [XmlAttribute("无数据报警")]
        [DisplayName("是否开启无数据报警")]
        public bool NoDataAlert { get; set; }
    }
}
